package com.jinzhi.jzweb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jinzhi.jzweb.dao.BookOrderDao;
import com.jinzhi.jzweb.domain.BookOrderDO;
import com.jinzhi.jzweb.service.BookOrderService;
import com.jinzhi.common.base.CoreServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * 
 * <pre>
 * 订单记录表
 * </pre>
 * <small> 2021-04-08 09:00:12 | lance</small>
 */
@Service
public class BookOrderServiceImpl extends CoreServiceImpl<BookOrderDao, BookOrderDO> implements BookOrderService {

    @Autowired
    private BookOrderDao bookOrderDao;


    @Override
    public Page<Map<Object,Object>> selectSchool(int pageNumber, int pageSize, String name) {
        Page<Map<Object,Object>> page = new Page<>(pageNumber, pageSize);
        List<Map<Object,Object>> list;
        list= this.baseMapper.selectSchool(page,name);
        return page.setRecords(list);
    }

    @Override
    public Map orderSchool(String schoolNmae) {
        return bookOrderDao.orderSchool(schoolNmae);
    }

    @Override
    public Map orderSchoolnew(String schoolNmae) {
        return bookOrderDao.orderSchoolnew(schoolNmae);
    }
}
